import request from '@/utils/request'

export function getList(data: any) {
  return request({
    url: '/admin/goodsList',
    method: 'post',
    data,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/admin/changeStatus',
    method: 'post',
    data,
  })
}

export function getMethodList(data: any) {
  return request({
    url: '/admin/goodsMethodList',
    method: 'post',
    data,
  })
}

export function doMethodDelete(data: any) {
  return request({
    url: '/admin/goodsMethodDel',
    method: 'post',
    data,
  })
}

export function doMethodAdd(data: any) {
  return request({
    url: '/admin/goods_method_add',
    method: 'post',
    data,
  })
}
